<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>CSS 动画 - 播放状态</title>
  <style>
    body {
      padding: 0 40px;
      color: #333;
    }

    img {
      width: 200px;

      animation-name: rotate;
      animation-duration: 2s;
      animation-timing-function: linear;
      animation-iteration-count: infinite;
    }

    img:hover {
      animation-play-state: paused;
    }

    @keyframes rotate {
      from {
        transform: rotate(0deg);
      }

      to {
        transform: rotate(360deg);
      }
    }
  </style>
</head>
<body>
  <h3>播放状态</h3>
  <p>设置动画的暂停状态</p>

  <img src="./images/rotate.png" alt="">
</body>
</html>